package com.fingersoft.im.api

import android.content.Context
import androidx.test.InstrumentationRegistry
import androidx.test.filters.SmallTest
import androidx.test.runner.AndroidJUnit4
import org.junit.Before
import org.junit.runner.RunWith

/**
 * Created by liubinbin on 2017/9/11.
 */
@RunWith(AndroidJUnit4::class)
@SmallTest
class RongAPIUtilsTest {
    var appContext: Context? = null
    @Before
    @Throws(Exception::class)
    fun setUp() {
        appContext = InstrumentationRegistry.getTargetContext()
//        assertEquals("com.fingersoft.im", appContext.packageName)
//        SealAppContext.init(appContext);
//        var newApplication = Instrumentation.newApplication(MyApplication::class.java, appContext)
//        newApplication.onCreate()
    }

//    @Test
//    fun user_groups() {
//        RongAPIUtils(appContext).group_query(object : BaseModelCallback2<UserGroupsResponse>(UserGroupsResponse::class.java) {
//            override fun onSuccess(modelResponse: UserGroupsResponse?, call: Call?, response: Response?) {
//                super.onSuccess(modelResponse, call, response)
//            }
//        })
//    }

}
